package cn.selfiot.iotman.model.mqtt.messge;

/**
 * 发布消息
 *
 * @author hugo
 * @since 2020/8/2
 */
public class PublishMessageModel extends ActionItem {
    private String title;
    private String pubClientId;
    private String payload;
    private boolean retained;
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getPubClientId() {
        return pubClientId;
    }
    
    public void setPubClientId(String pubClientId) {
        this.pubClientId = pubClientId;
    }
    
    public String getPayload() {
        return payload;
    }
    
    public void setPayload(String payload) {
        this.payload = payload;
    }
    
    public boolean getRetained() {
        return retained;
    }
    
    public void setRetained(boolean retained) {
        this.retained = retained;
    }
    
    @Override
    public String toString() {
        return "PublishMessageModel{" +
                "title='" + title + '\'' +
                ", pubClientId='" + pubClientId + '\'' +
                ", payload='" + payload + '\'' +
                ", retained=" + retained +
                '}';
    }
}
